#pragma once
#include "dll_setup.h"
#include <SDL.h>

class SAPPHIRE_ENGINE Random
{
public:
	Random();
	Random(int seed);

	virtual ~Random();
	
	int get(int min, int max);
	float get(float min, float max);

	int dice(){return 0;}

protected:

	void _init(int seed);
	/* Complementary-Multiply-With-Carry stuff */
	/* shared with Generalised Feedback Shift Register */
	Uint32 Q[4096], c;
    int cur;
};